<?php
// test_user数据表代码生成配置文件
return
[
    'menuPid'=>99,
    'prefix'=>'primary',
    'table'=>'log_role_chat',// 基于此表构建 代码
    'modelName'=>'LogRoleChat',//模块名
    'modelShowName'=>'聊天日志', //HTML页面 显示的功能名称,例如: 订单, 相关名称有订单添加,订单编辑,订单删除,订单列表,订单管理, 同时,php代码中会有注释
    //字段处理
    "fields"=>
    [
        ['field'=>'logTime','type'=>'int','title'=>'时间戳'],
        ['field'=>'memId','type'=>'int','title'=>'账号ID'],
        ['field'=>'roleId','type'=>'int','title'=>'角色ID'],
        ['field'=>'nick','type'=>'varchar','title'=>'角色昵称'],
        ['field'=>'chat_type','type'=>'radio','title'=>'频道',"values"=>[ // 1世界、2氏族、3队伍、4私聊、5传闻、6附近、7大喇叭
            ['value'=>0,'title'=>'世界'],
            ['value'=>1,'title'=>'氏族'],
            ['value'=>2,'title'=>'队伍'],
            ['value'=>3,'title'=>'私聊'],
            ['value'=>4,'title'=>'传闻'],
            ['value'=>5,'title'=>'附近'],
            ['value'=>6,'title'=>'大喇叭'],
        ],'default'=>0],
        ['field'=>'chat_content','type'=>'varchar','title'=>'聊天内容'],
        ['field'=>'other_role_id','type'=>'int','title'=>'收信角色ID'],
        ['field'=>'other_role_nick','type'=>'varchar','title'=>'收信角色昵称'],

    ],
    'functions'=> //功能
    [
        ['name'=>'model','path'=>'app/Models'],
        ['name'=>'dto','path'=>'app/DTOS/Admin','dtoList'=>[ 'searchDTO']],
        ['name'=>'service','path'=>'app/Services','methods'=>['paginate']],
        ['name'=>'controller','path'=>'app/Http/Controllers/Admin','methods'=>['paginate']],
        ['name'=>'layuiAdminPage',
            'output'=>'/code/xm2-admin/page/log/logRoleChat',
            'pages'=>
            [
                ['page'=>'index','functions'=>[]],
            ]
        ],
        ['name'=>'route'],
        ['name'=>'menu','functions'=>[ 'paginate' ]],
    ],
];

